1 <?php
2 include(
"header.php");
3 include(
"sidebar.php");
4
5 include(
"dbconnection.php");
6
7 $result= mysql_query(
"select * from billing");
8 ?>
9         
10                             
11         <div id=
"main">
12             
13             <a name=
"TemplateInfo"></a>
14             <h1>Billing</h1>
15             <?php

16 if
($ctins == 1)
17 {
18     echo
"<center><b>Employees account created successfully...</b></center><br>";
19     echo
"<center><b><a href='emplogin.php'>Click here to Login.</a></b></center>";
20 }

21 else

22 {
23     ?>
24         <form id=
"form1" name="form1" method="post" action="">
25           <table width=
"686" border="1">
26             <tr>
27               <th scope=
"col">Bill No</th>
28               <th scope=
"col">Service ID</th>
29               <th scope=
"col">Particulars</th>
30               <th scope=
"col">Service Cost</th>
31               <th scope=
"col">Date</th>
32               <th scope=
"col">Advance</th>
33             </tr>
34           <?php
35           
while($arrrec= mysql_fetch_array($result))
36           {
37            echo
" <tr>
38               <td>&nbsp; $arrrec[billingno]</td>
39               <td>&nbsp; $arrrec[serviceid]</td>
40               <td>&nbsp; $arrrec[particulars]</td>
41               <td>&nbsp; $arrrec[scost]</td>
42               <td>&nbsp; $arrrec[date]</td>
43               <td>&nbsp; $arrrec[paidstatus]</td>
44             </tr>"
;
45           }
46           ?>
47           </table>
48         </form>
49     <?php
50     }
51     ?>
52             <p>&nbsp;</p>
53 <br />
54                                             
55         </div>
56         
57 <!-- wrap ends here -->
58 </div>
59         
60 <?php
61 include(
"footer.php");
62 ?>


Gõ tìm kiếm nhanh...